# import tkinter
from tkinter import *
from functools import partial

root = Tk()
lb = Label(text='Hello world!')
b1 = Button(root, fg='white', bg='blue', text='Button 1')
MyBtn = partial(Button, root, fg='white', bg='blue')
b2 = MyBtn(text='Button 2')
b3 = MyBtn(text='quit', command=root.quit)
lb.pack()
b1.pack()
b2.pack()
b3.pack()
root.mainloop()